<?php

namespace app\api\validate;

use think\Validate;

class Pay extends Validate
{
    protected $failException = true;

    protected $rule = [
        'username'    => 'require',
        'phone'      => 'mobile|require',
        'address'     => 'require',
        'address_detail'   => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'username.require' => '请填写姓名',
        'phone.require' => '请填写手机号',
        'phone.mobile' => '手机格式不正确',
        'address.require' => '请选择地址',
        'address_detail.require' => '请填写详细地址',
    ];

}